package com.ruoyi.app.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.app.mapper.AppMediumActivityTagMapper;
import com.ruoyi.app.domain.AppMediumActivityTag;
import com.ruoyi.app.service.IAppMediumActivityTagService;

/**
 * 活动与自选标签的关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-06
 */
@Service
public class AppMediumActivityTagServiceImpl implements IAppMediumActivityTagService 
{
    @Autowired
    private AppMediumActivityTagMapper appMediumActivityTagMapper;
    @Override
    public List<Long> selectTagIdsByActivityId(Long activityId) {
        return appMediumActivityTagMapper.selectTagIdsByActivityId(activityId);
    }
    /**
     * 查询活动与自选标签的关联
     * 
     * @param id 活动与自选标签的关联主键
     * @return 活动与自选标签的关联
     */
    @Override
    public AppMediumActivityTag selectAppMediumActivityTagById(Long id)
    {
        return appMediumActivityTagMapper.selectAppMediumActivityTagById(id);
    }

    /**
     * 查询活动与自选标签的关联列表
     * 
     * @param appMediumActivityTag 活动与自选标签的关联
     * @return 活动与自选标签的关联
     */
    @Override
    public List<AppMediumActivityTag> selectAppMediumActivityTagList(AppMediumActivityTag appMediumActivityTag)
    {
        return appMediumActivityTagMapper.selectAppMediumActivityTagList(appMediumActivityTag);
    }

    /**
     * 新增活动与自选标签的关联
     * 
     * @param appMediumActivityTag 活动与自选标签的关联
     * @return 结果
     */
    @Override
    public int insertAppMediumActivityTag(AppMediumActivityTag appMediumActivityTag)
    {
        return appMediumActivityTagMapper.insertAppMediumActivityTag(appMediumActivityTag);
    }

    /**
     * 修改活动与自选标签的关联
     * 
     * @param appMediumActivityTag 活动与自选标签的关联
     * @return 结果
     */
    @Override
    public int updateAppMediumActivityTag(AppMediumActivityTag appMediumActivityTag)
    {
        return appMediumActivityTagMapper.updateAppMediumActivityTag(appMediumActivityTag);
    }

    /**
     * 批量删除活动与自选标签的关联
     * 
     * @param ids 需要删除的活动与自选标签的关联主键
     * @return 结果
     */
    @Override
    public int deleteAppMediumActivityTagByIds(Long[] ids)
    {
        return appMediumActivityTagMapper.deleteAppMediumActivityTagByIds(ids);
    }

    /**
     * 删除活动与自选标签的关联信息
     * 
     * @param id 活动与自选标签的关联主键
     * @return 结果
     */
    @Override
    public int deleteAppMediumActivityTagById(Long id)
    {
        return appMediumActivityTagMapper.deleteAppMediumActivityTagById(id);
    }
}
